package com.gaojunxiang.dao;

import com.gaojunxiang.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 持久层接口
 */
public interface UserDao {
    //增
    public boolean save(User user);
    //删根据id
    public boolean delete(Integer id);
    //改
    public boolean update(User user);
    //查根据id
    public User findById(Integer id);
    //查根据用户名和密码
    public User findByUsernameAndPassword(@Param("username") String username,@Param("password") String password);
    //查询所有根据分页
    public List<User> findAll();
}
